package com.magicstone.common.Time;

public class Month{
	private Integer year;
	private Integer month;
	public Month(Integer year, Integer month){
		this.year = year;
		this.month = month;
	}
	public Month(){
		
	}
	
	public Integer getYear() {
		return year;
	}
	public void setYear(Integer year) {
		this.year = year;
	}
	public Integer getMonth() {
		return month;
	}
	public void setMonth(Integer month) {
		this.month = month;
	}
	
	public String toString(){
		String result = year + "年 - " + month + " 月 ";
		return result; 
	}
	
	/*
	 * Formate: YYYY.MM
	 */
	public String toString1(){
		String result = year + "." +  (month < 9 ? ("0" + (month + 1)) : (month + 1));
		return result; 
	}
}